package com.anxin.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.anxin.bean.Type;
import com.anxin.dao.TypeDAO;

@Repository("typeDao")
public class TypeDAOImpl extends BaseDAOImpl<Type, Integer> implements TypeDAO {

	@Override
	public List<Type> findTypeByParent(int parentId) {
		List<Type> typeList = getSqlSessionTemplate().selectList("Type.searchTypeByParent", parentId);
		return typeList;
	}
}
